import { Injectable } from '@angular/core';

const skwebErrCode = require('@assets/errcode/skweb-errcode.json');

@Injectable({
  providedIn: 'root'
})
export class ErrorService {

  constructor() {
    //
  }

  public handleError(errcode) {
    if (skwebErrCode[errcode]) {
      return skwebErrCode[errcode];
    } else {
      return null;
    }
  }
}
